import java.io.PrintStream;

/**
 * Created by thoughtworker on 1/16/14.
 */
public class ListPlayersAction implements MenuAction {
    Catalog catalog;
    PrintStream printStream;

    public ListPlayersAction(PrintStream printStream, Catalog catalog){
        this.printStream = printStream;
        this.catalog = catalog;
    }

    public void performAction(){
        catalog.printPlayersAndCoaches(printStream);
    }

    public String toString(){
        return "list players";
    }
}
